<!DOCTYPE html>
<html lang="en">
<head>
  <title>Document</title>
</head>
<body>
  <div id="app">
    {{msg}}
    <button v-on:click="handleClick">点击</button>
  </div>
  <!-- <script src="./vue.js"></script> -->
  <script src="./mvvm/mvvm.js"></script>
  <script src="./mvvm/compile.js"></script>
  <script src="./mvvm/observer.js"></script>
  <script src="./mvvm/watcher.js"></script>
  <script>
    new MVVM({
      el: '#app',
      data: {
        msg: 'hello'
      },
      methods: {
        handleClick  () {
          alert(this.msg)
        }
      }
    })
  </script>
</body>
</html>